package Demo.Tree;

import java.util.List;
import java.util.Random;
import java.util.RandomAccess;

public class Test {
    public static void main(String[] args) {
        Tree tree = new Tree();
        TreeNode root = new TreeNode(1);

        tree.setRoot(root);

        TreeNode lNode = new TreeNode(2);
        TreeNode rNode = new TreeNode(3);

        root.setlNode(lNode);
        root.setrNode(rNode);

        lNode.setlNode(new TreeNode(4));
        lNode.setrNode(new TreeNode(5));

        rNode.setlNode(new TreeNode(6));
        rNode.setrNode(new TreeNode(7));

        tree.frontShow();

    }
}
